﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package plugin {
    import flash.geom.*;
    import flash.utils.*;
    import flash.filters.*;

    public class ConsoleStub {

        private static var s_instance:ConsoleStub;

        private var binder:Dictionary;
        private var call_channel:Function = null;
        private var call_bindkey:Function = null;
        private var call_store:Function = null;
        private var call_addgraph:Function = null;

        public function ConsoleStub(_arg1:Dictionary){
            var binding:* = _arg1;
            super();
            this.binder = binding;
            this.call_channel = (binding["channel"] as Function);
            if (this.call_channel == null){
                this.call_channel = function (_arg1:String, _arg2:String, _arg3:int=5, _arg4:Boolean=false):void{
                };
            };
            this.call_bindkey = (binding["bindkey"] as Function);
            if (this.call_bindkey == null){
                this.call_bindkey = function (_arg1:String, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false):void{
                };
            };
            this.call_store = (binding["store"] as Function);
            if (this.call_store == null){
                this.call_store = function (_arg1:String, _arg2:Object, _arg3:Boolean=false):void{
                };
            };
            this.call_addgraph = (binding["addgraph"] as Function);
            if (this.call_addgraph == null){
                this.call_addgraph = function (_arg1:String, _arg2:Object, _arg3:String, _arg4:int=-1, _arg5:String=null, _arg6:Rectangle=null, _arg7:Boolean=false):void{
                };
            };
        }
        public static function getInstance():ConsoleStub{
            return (s_instance);
        }
        public static function install(_arg1:Object):void{
            if (!_arg1.hasOwnProperty("binding")){
                return;
            };
            var _local2:Dictionary = (_arg1["binding"] as Dictionary);
            var _local3:Function = (_local2["install"] as Function);
            if (((((!((_local3 == null))) && (!((Global.ui == null))))) && (_local3(Global.ui)))){
                Global.ui.filters = new Array(new GlowFilter());
                s_instance = new ConsoleStub(_local2);
            };
        }
        public static function get active():Boolean{
            return (!((s_instance == null)));
        }

        public function print(_arg1:String, _arg2:String, _arg3:int=5, _arg4:Boolean=false):void{
            this.call_channel(_arg1, _arg2, _arg3, _arg4);
        }
        public function plot(_arg1:String, _arg2:Object, _arg3:String, _arg4:int=-1, _arg5:String=null, _arg6:Rectangle=null, _arg7:Boolean=false):void{
            this.call_addgraph(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
        }
        public function addHotKey(_arg1:String, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false):void{
            this.call_bindkey(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
        }
        public function addObject(_arg1:String, _arg2:Object, _arg3:Boolean=false):void{
            this.call_store(_arg1, _arg2, _arg3);
        }

    }
}//package plugin 
